﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delivery_way.aspx.cs" Inherits="backstage_delivery_way" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <%Response.Write(GetTitle()); %>
    </title>
    <link href="css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="js/main.js"></script>

<script type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {
            if ($("#txtDeliveryWayName").val() == "") {
                $("#txtDeliveryWayName").select();
                alert("请输入配送方式名称！");
                return false;
            }
            if ($("#selectLogisticsCompany").val() == "0") {
                $("#selectLogisticsCompany").focus();
                alert("请输入默认物流公司！");
                return false;
            }
            if ($("#txtSortOrder").val() == "") {
                $("#txtSortOrder").select();
                alert("请输入排序！");
                return false;
            }
            if ($("#txtaIntroduce").val().length > 100) {
                $("#txtSortOrder").select();
                alert("介绍最多不能超过100个字符！");
                return false;
            }
            return true;
        });
    });
</script>

<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_left_top">
                <img alt="" src="images/left-top-right.gif" /></td>
            <td class="td_middle_top">
                <div class="left_topbg">
                    <div class="titlebt">
                        <%Response.Write(GetTitle()); %>
                    </div>
                </div>
            </td>
            <td class="td_right_top">
                <img alt="" src="images/nav-right-bg.gif" /></td>
        </tr>
        <tr>
            <td class="td_left_middle">
            </td>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    配送方式名称：</td>
                                <td class="td_content">
                                    <input id="txtDeliveryWayName" name="userName" type="text" runat="server" maxlength="20" />*最多20个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    默认物流公司：</td>
                                <td class="td_content">
                                    <select id="selectLogisticsCompany" name="logisticsCompany">
                                        <option value="0">请选择物流公司...</option>
                                        <% Response.Write(LogisticsCompanyBind()); %>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    排序：</td>
                                <td class="td_content">
                                    <input id="txtSortOrder" type="text" runat="server" onpaste="return false" style="ime-mode:disabled"
                                        onkeypress="if ((event.keyCode<48 || event.keyCode>57||event.keyCode==46)) event.returnValue=false" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    介绍：</td>
                                <td class="td_content">
                                    <textarea id="txtaIntroduce" runat="server" cols="20" rows="2"></textarea>最多100个字符</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkDeliveryWayForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="location.href='delivery_way_list.aspx';" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
            <td class="td_right_middle">
            </td>
        </tr>
        <tr>
            <td class="td_left_bottom">
                <img alt="" src="images/buttom_left2.gif" />
            </td>
            <td class="td_middle_bottom">
                <img alt="" src="images/buttom_bgs.gif" />
            </td>
            <td class="td_right_bottom">
                <img alt="" src="images/buttom_right2.gif" />
            </td>
        </tr>
    </table>
</body>
</html>
